<template>
	<div id="view-activity-index" class="register">
		<iframe :src="`https://ac.ppdai.com/activitypage?redirect=&style=&activityId=85&source=${ source }&regsourceid=${ source }&tophost=huankachaoren`" class="register-iframe" frameborder="0"></iframe>
	</div>
</template>

<script>
	const GetQueryString = function (name) {
		var reg = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, 'i');
		var r = window.location.search.substr(1).match(reg);
		return r ? r[2] : null;
	};

	export default {
		'name': 'view-register-index',
		data() {
			return {
				'source': GetQueryString('source') || ''
			};
		}
	};
</script>

<style scoped>
	.register,
	.register-iframe {
		display: block;
		width: 100%;
		height: 100%;
	}
</style>
<style>
	html,
	body,
	main {
		height: 100%;
	}
</style>
